package com.example.springdemo.entity;

import lombok.AccessLevel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;
import javax.persistence.*;

@Data
@RequiredArgsConstructor
@NoArgsConstructor(access=AccessLevel.PUBLIC, force=true)
@Entity
@Table(name = "ingredient")
public class Ingredient {
  
  @Id
  @Column(name = "id")
  private final String id;
  @Column(name = "name")
  private final String name;
  @Column(name = "type")
  @Enumerated(EnumType.STRING)
  private final Type type;
  public enum Type {
    WRAP, PROTEIN, VEGGIES, CHEESE, SAUCE
  }

}
